<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MNN: halide_buffer_t结构体 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MNN
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="structhalide__buffer__t-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">halide_buffer_t结构体 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_halide_runtime_8h_source.html">HalideRuntime.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a51aa231b39c37cb777369dda8825030f"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhalide__buffer__t.html#a51aa231b39c37cb777369dda8825030f">device</a></td></tr>
<tr class="separator:a51aa231b39c37cb777369dda8825030f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab449476b5d2b9a6eddb7bd813b7c8f6c"><td class="memItemLeft" align="right" valign="top">const struct <a class="el" href="structhalide__device__interface__t.html">halide_device_interface_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhalide__buffer__t.html#ab449476b5d2b9a6eddb7bd813b7c8f6c">device_interface</a></td></tr>
<tr class="separator:ab449476b5d2b9a6eddb7bd813b7c8f6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e3420b357ead1398489ea508f3ac4a9"><td class="memItemLeft" align="right" valign="top">uint8_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhalide__buffer__t.html#a6e3420b357ead1398489ea508f3ac4a9">host</a></td></tr>
<tr class="separator:a6e3420b357ead1398489ea508f3ac4a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbee1a8a419c5ba3dcaedfabb3817c8c"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhalide__buffer__t.html#acbee1a8a419c5ba3dcaedfabb3817c8c">flags</a></td></tr>
<tr class="separator:acbee1a8a419c5ba3dcaedfabb3817c8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7aa90af2694ee99f6a097eaecbd7dcc2"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structhalide__type__t.html">halide_type_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhalide__buffer__t.html#a7aa90af2694ee99f6a097eaecbd7dcc2">type</a></td></tr>
<tr class="separator:a7aa90af2694ee99f6a097eaecbd7dcc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15a026342a3f8402f06d8b0f9f1391dc"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhalide__buffer__t.html#a15a026342a3f8402f06d8b0f9f1391dc">dimensions</a></td></tr>
<tr class="separator:a15a026342a3f8402f06d8b0f9f1391dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36ad75ba5fff094906f338aa48722bbe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structhalide__dimension__t.html">halide_dimension_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhalide__buffer__t.html#a36ad75ba5fff094906f338aa48722bbe">dim</a></td></tr>
<tr class="separator:a36ad75ba5fff094906f338aa48722bbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a1207bdde5e92c5b367a92c118a76c3"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhalide__buffer__t.html#a0a1207bdde5e92c5b367a92c118a76c3">padding</a></td></tr>
<tr class="separator:a0a1207bdde5e92c5b367a92c118a76c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>The raw representation of an image passed around by generated Halide code. It includes some stuff to track whether the image is not actually in main memory, but instead on a device (like a GPU). For a more convenient C++ wrapper, use Halide::Buffer&lt;T&gt;. </p>
</div><h2 class="groupheader">类成员变量说明</h2>
<a id="a51aa231b39c37cb777369dda8825030f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51aa231b39c37cb777369dda8825030f">&#9670;&nbsp;</a></span>device</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t halide_buffer_t::device</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A device-handle for e.g. GPU memory used to back this buffer. </p>

</div>
</div>
<a id="ab449476b5d2b9a6eddb7bd813b7c8f6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab449476b5d2b9a6eddb7bd813b7c8f6c">&#9670;&nbsp;</a></span>device_interface</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const struct <a class="el" href="structhalide__device__interface__t.html">halide_device_interface_t</a>* halide_buffer_t::device_interface</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The interface used to interpret the above handle. </p>

</div>
</div>
<a id="a36ad75ba5fff094906f338aa48722bbe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a36ad75ba5fff094906f338aa48722bbe">&#9670;&nbsp;</a></span>dim</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structhalide__dimension__t.html">halide_dimension_t</a>* halide_buffer_t::dim</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The shape of the buffer. Halide does not own this array - you must manage the memory for it yourself. </p>

</div>
</div>
<a id="a15a026342a3f8402f06d8b0f9f1391dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15a026342a3f8402f06d8b0f9f1391dc">&#9670;&nbsp;</a></span>dimensions</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t halide_buffer_t::dimensions</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The dimensionality of the buffer. </p>

</div>
</div>
<a id="acbee1a8a419c5ba3dcaedfabb3817c8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acbee1a8a419c5ba3dcaedfabb3817c8c">&#9670;&nbsp;</a></span>flags</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t halide_buffer_t::flags</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>flags with various meanings. </p>

</div>
</div>
<a id="a6e3420b357ead1398489ea508f3ac4a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e3420b357ead1398489ea508f3ac4a9">&#9670;&nbsp;</a></span>host</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t* halide_buffer_t::host</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A pointer to the start of the data in main memory. In terms of the Halide coordinate system, this is the address of the min coordinates (defined below). </p>

</div>
</div>
<a id="a0a1207bdde5e92c5b367a92c118a76c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a1207bdde5e92c5b367a92c118a76c3">&#9670;&nbsp;</a></span>padding</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* halide_buffer_t::padding</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Pads the buffer up to a multiple of 8 bytes </p>

</div>
</div>
<a id="a7aa90af2694ee99f6a097eaecbd7dcc2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7aa90af2694ee99f6a097eaecbd7dcc2">&#9670;&nbsp;</a></span>type</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structhalide__type__t.html">halide_type_t</a> halide_buffer_t::type</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The type of each buffer element. </p>

</div>
</div>
<hr/>该结构体的文档由以下文件生成:<ul>
<li>include/<a class="el" href="_halide_runtime_8h_source.html">HalideRuntime.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
